package com.dankegongyu.component.jsbridge.listener;


import android.graphics.Bitmap;

import com.tencent.smtt.export.external.interfaces.SslError;
import com.tencent.smtt.export.external.interfaces.SslErrorHandler;
import com.tencent.smtt.export.external.interfaces.WebResourceRequest;
import com.tencent.smtt.export.external.interfaces.WebResourceResponse;
import com.tencent.smtt.sdk.WebView;

/**
 * 包装一下是为了屏蔽com.tencent.smtt.sdk.WebViewClient,内部切换不影响外界。
 */
public class DKWebViewClientCallback {

    public boolean shouldOverrideUrlLoading(WebView var1, String var2) {
        return false;
    }

    public boolean shouldOverrideUrlLoading(WebView var1, WebResourceRequest var2) {
        return false;
    }

    public void onPageStarted(WebView view, String url, Bitmap favicon) {
    }

    public void onPageFinished(WebView view, String url) {
    }

    public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
    }

    public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
    }

    public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
        return null;
    }

}
